package com.me.libgdx_test;

import com.badlogic.gdx.utils.Logger;

public class ClassLogDisplay {
	private static Logger logger;
	private static String subject;
	
	public ClassLogDisplay(String subject){
		this.subject = subject;
		logger = new Logger(subject);
		
	}
	
	public static void print(Point message){
		logger.info("X: " + message.x + " Y: " + message.y);
		System.out.println(subject + " - " + "X: " + message.x + " Y: " + message.y);
	}
	
	public static void print(String message){
		logger.info(message);
		System.out.println(subject + " - " + message);
	}
	
	public static < E > void print(E message){
		logger.info(String.valueOf(message));
		System.out.println(subject + " - " + String.valueOf(message));
	}
}
